home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / VideoFolder 1.0a / Source / SequenceGrabberPane.h < prev    next >
Text File  |  1996-06-21  |  1KB  |  53 lines

  1.  
  2. #include <QuickTimeComponents.h>
  3.  
  4. #include <LPane.h>
  5. #include <LPeriodical.h>
  6. #include <LView.h>
  7.  
  8. class SequenceGrabberPane : public LView, LPeriodical {
  9. public:
  10.     enum { class_ID = 'Grab' };
  11.     static SequenceGrabberPane*        CreateSequenceGrabberPaneStream(LStream *inStream);
  12.     
  13.                         SequenceGrabberPane();
  14.                         SequenceGrabberPane(const SequenceGrabberPane &inOriginal);        
  15.                         // SequenceGrabberPane(const SSequenceGrabberPaneInfo &inSequenceGrabberPaneInfo);
  16.                         SequenceGrabberPane(LStream *inStream);
  17.     
  18.     virtual                ~SequenceGrabberPane();
  19.  
  20.     virtual void        DoSetupDialog ( );
  21.  
  22.     virtual void        DrawSelf ( );
  23.     
  24.     virtual void        FinishCreate();
  25.  
  26.     virtual void        Grab ( );
  27.  
  28.     virtual void        ResizeFrameBy(Int16 inWidthDelta, Int16 inHeightDelta,
  29.                                     Boolean inRefresh);
  30.  
  31.     virtual void        SetLiveUpdate ( Boolean newValue );
  32.     
  33.     virtual    void        SpendTime( const EventRecord        &inMacEvent);
  34.  
  35.     Handle                GetConfiguration () const;
  36.     void                SetConfiguration ( Handle h );
  37.  
  38. protected:
  39.     void                InitializeSequenceGrabber ( );
  40.     void                SetUpdateDirectToScreen ( );
  41.     
  42.     Boolean fQuickTime, fSequenceGrabber;
  43.     LGWorld*            mGWorld;
  44.     // GWorldPtr fOffscreenWorld;
  45.     // PixMapHandle fOffscreenPixMap;
  46.     // Rect fOffscreenRect;
  47.     Rect                 mSourceVideoBounds;
  48.     
  49.     SeqGrabComponent     fSequenceGrabberComponent;
  50.     SGChannel             fVideoChannel;
  51.     
  52.     Boolean            mLiveUpdate;
  53. };